
#ifndef   __ANALOG_TO_DIGITAL_CONVERTOR__
#define   __ANALOG_TO_DIGITAL_CONVERTOR__


/* ATD */
#define  PCAD					(1UL << 12)
#define 	ADC_OFFSET			0x10
#define 	ADC_INDEX			4
#define 	ADC_DONE				0x80000000
#define 	ADC_OVERRUN			0x40000000
#define 	ADC_ADINT			0x00010000
#define 	ADC_NUM				8		/* for LPC23xx */
#define 	ADC_CLK				1000000		/* set to 1Mhz; max: 4500000Hz */

void atd_task ( void *pvParameters );

#endif

